package com.stone.design.practice.eventbus;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.stone.design.practice.R;

import org.greenrobot.eventbus.EventBus;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author Stone
 * @version V1.0
 * @description:
 * @date 7/27/18 11:24 AM
 */
public class EventBusActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_event_bus);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.btn_send)
    public void onClick() {

        EventBus.getDefault().post(new Event("Just do it"));

    }
}
